import { Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { UserInterface } from 'src/types/interface/user.interface';

@Injectable()
export class AuthService {
  constructor(private readonly _jwtService: JwtService) {}
  login(user: UserInterface) {
    return this._jwtService.sign(user);
  }
}
